<div class="post">
    <?php if (isset($errors)) {
    ?>
        <div class="error">
            Sorry, error occurred. <?= $errors; ?>
        </div>
    <?php } else {
    ?>
        <h2 style="text-transform: capitalize"><?= $name; ?></h2>
        <div class="entry">
            <table style="border:5px;border-style:solid;">
                <tr class="darker">
                    <th>
                        Name
                    </th>
                    <td>
                    <?= $name; ?>
                </td>
            </tr>
            <tr class="lighter">
                <th>
                    Added by
                </th>
                <td>
                    <?= $added_by; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                    Date added
                </th>
                <td>
                    <?= $date_added; ?>
                </td>
            </tr>
        </table>
    </div>
    <?php } ?>

                <input type="button" onclick="hide('#<?= $div; ?>')" value="Close" />
</div>